a = 60
print(a)
# 16 进制
print(hex(a))
# 八进制
print(oct(a))
# 二进制
print(bin(a))


# 60 / 16 = 3
# #          --> 12 (c)  0x3c


# 60 / 8 = 7   --> 4   --> 0o74

# 2 进制转 8 进制
# 111 111 --> 77

# 8 进制转十进制  7 + 7 * 8 = 63


print(1 + 2+ 4+ 8+16 + 32)

# 2 进制 转 16 进制
# 11 1111 --> 3F
b = 63
print(hex(b))

# c = 12  =  1100
# 3 = 3 = 11
#  3 c == 11 1100